from ...url.base import *
from ...schema.user import AddUser, ResponseGlobal, ResponseGlobalDict, ResponseGlobalList, ListUser, PageResponse
from ...operation.user import add_user, list_user


@router.get('/list', response_model=PageResponse)
async def first(args: dict = Depends(get_request)):
    return await list_user(args)


@router.post('/add', response_model=ResponseGlobal)
async def add(args: dict = AddUser):
    return await add_user(args)
